package com.itheima.tlias.service.impl;

import com.itheima.tlias.mapper.EmpLoginLogMapper;
import com.itheima.tlias.pojo.EmpLoginLog;
import com.itheima.tlias.service.EmpLoginLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
@Service
public class EmpLoginLogServiceImpl implements EmpLoginLogService {
    @Resource
    private EmpLoginLogMapper empLoginLogMapper;

    @Override
    @Transactional(propagation = Propagation.REQUIRES_NEW)
    public void insert(EmpLoginLog empLoginLog) {
        empLoginLogMapper.insert(empLoginLog);
    }
}
